import java.util.Date;

public class TimeTab {
    //列车时刻表
    private City from;//出发地
    private City to;//到达地
    private Date go_off;//出发时间
    private Date arrival;//到达时间
    private String trainNum;//列车车次

    public TimeTab(City from, City to, Date go_off, Date arrival, String trainNum) {
        this.from = from;
        this.to = to;
        this.go_off = go_off;
        this.arrival = arrival;
        this.trainNum = trainNum;
    }

    public City getFrom() {
        return from;
    }

    public void setFrom(City from) {
        this.from = from;
    }

    public City getTo() {
        return to;
    }

    public void setTo(City to) {
        this.to = to;
    }

    public Date getGo_off() {
        return go_off;
    }

    public void setGo_off(Date go_off) {
        this.go_off = go_off;
    }

    public Date getArrival() {
        return arrival;
    }

    public void setArrival(Date arrival) {
        this.arrival = arrival;
    }

    public String getTrainNum() {
        return trainNum;
    }

    public void setTrainNum(String trainNum) {
        this.trainNum = trainNum;
    }
}
